package com.silence.springboot.vo.input;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author silence
 * @Email 782245022@qq.com
 * @Date 2024-05-31 13:43
 * @Description 更新密码入参
 */
@Data
@Accessors(chain = true)
public class UpdatePasswordInput implements Serializable {

    /**
     * 序列号
     */
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 旧密码
     */
    @Schema(description = "旧密码")
    @NotBlank(message = "旧密码不能为空")
    @Size(max = 100, message = "旧密码不能超过100个字符")
    private String oldPassword;

    /**
     * 新密码
     */
    @Schema(description = "新密码")
    @NotBlank(message = "新密码不能为空")
    @Size(max = 100, message = "新密码不能超过100个字符")
    private String newPassword;

    /**
     * 确认密码
     */
    @Schema(description = "确认密码")
    @NotBlank(message = "确认密码不能为空")
    @Size(max = 100, message = "确认密码不能超过100个字符")
    private String confirmPassword;

    /**
     * token
     */
    @Schema(description = "token")
    @NotBlank(message = "token不能为空")
    private String token;

}
